package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 停车场费用设置记录
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_fee_log")
public class CarParkFeeLog extends Model<CarParkFeeLog> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    private String logId;
    /**
     * 设置ID
     */
    @TableField("sid")
    private String sid;
    /**
     * 说明
     */
    @TableField("note")
    private String note;
    /**
     * 规则
     */
    @TableField("rule")
    private String rule;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 停车场计费规则
     */
    @TableField("bill_rule")
    private String billRule;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 停车场ID
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 停车场名称
     */
    @TableField("park_name")
    private String parkName;
    /**
     * 停车场地址
     */
    @TableField("park_address")
    private String parkAddress;

    public void freeData() {
        this.logId = null;
        this.sid = null;
        this.note = null;
        this.rule = null;
        this.addTime = null;
        this.updateTime = null;
        this.billRule = null;
        this.orgId = null;
        this.operator = null;
        this.parkId = null;
        this.parkName = null;
        this.parkAddress = null;
    }

}
